high_points = [10, 12, 14]
mid_points = [5, 6, 7]

# 计算平均值
high_avg = sum(high_points) / len(high_points)
mid_avg = sum(mid_points) / len(mid_points)

# 定义允许的浮动范围
tolerance = 2

# 假设的目标值
target_high_avg = 12
target_mid_avg = 6

# 检查平均值是否在允许的浮动范围内
if abs(high_avg - target_high_avg) <= tolerance:
    print(f"high_avg {high_avg} 在允许的浮动范围内。")
else:
    print(f"high_avg {high_avg} 超出了允许的浮动范围。")

if abs(mid_avg - target_mid_avg) <= tolerance:
    print(f"mid_avg {mid_avg} 在允许的浮动范围内。")
else:
    print(f"mid_avg {mid_avg} 超出了允许的浮动范围。")
